const mongoose = require('mongoose')
const { preSave } = require('../utils')

const classificationSchema = new mongoose.Schema({
    title: String,
    meta: {
        createAt: {
            type: Number,
            default: (new Date()).getTime(),
        },
        updateAt: {
            type: Number,
            default: (new Date()).getTime(),
        },
    },
})
classificationSchema.pre('save', preSave)
module.exports = classificationSchema
